<?php

/**
 * Event form.
 *
 * @package    campus-plateform
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class EventForm extends BaseEventForm
{
  public function configure()
  {
	$this->widgetSchema['start_date'] = new sfWidgetFormDateJQueryUI();
	$this->widgetSchema['end_date'] = new sfWidgetFormDateJQueryUI();
	$this->widgetSchema['visibility_date'] = new sfWidgetFormDateJQueryUI();
	$this->widgetSchema['email_date'] = new sfWidgetFormDateJQueryUI();
	$this->widgetSchema['deadline_inscription'] = new sfWidgetFormDateJQueryUI();
	$this->widgetSchema['deadline_payment'] = new sfWidgetFormDateJQueryUI();
	$this->widgetSchema['reminder_email'] = new sfWidgetFormDateJQueryUI();

        $this->widgetSchema['path_cover_photo'] = new sfWidgetFormInputFile(array(
	'label' => 'Joindre une photo de couverture',
	));

	$this->validatorSchema['path_cover_photo'] = new sfValidatorFile(array(
	'required'   => true,
	'path'       => sfConfig::get('sf_upload_dir').'/EventsCoverPhotos',
	'mime_types' => 'web_images',
            ));


  }
}
